package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 公司组织架构表
 */

@Data
@Table(name = "dt_sys_admin_firm_department")
@EqualsAndHashCode(callSuper = false)
public class SysAdminFirmDepartmentEntity extends BaseEntity {

    //用户登录记录ID
    @NotNull(message = "adminLoginRecordId参数不能为空")
    Long adminLoginRecordId;

    //部门名称
    @NotNull(message = "deptNameZh参数不能为空")
    @Length(min = 0, max = 30, message = "deptNameZh参数最大长度不30")
    String deptNameZh;

    //是否叶子 0-否,1-是
    @NotNull(message = "yesLeaf参数不能为空")
    Boolean yesLeaf;

    //父节点记录ID
    Long deptPid;

    //序号
    Integer deptOrder;


}
